echo y | sudo pacman -S open-vm-tools
sudo systemctl enable vmtoolsd vmware-vmblock-fuse
echo y | sudo pacman -S gtkmm3
echo y | sudo pacman -S git
echo y | sudo pacman -S xf86-input-vmmouse xf86-video-vmware mesa
echo "
y
" | sudo pacman -S xorg
echo y | sudo pacman -S plasma-meta
echo y | sudo pacman -S sddm
echo y | sudo pacman gnome-terminal konsole
echo y | sudo pacman -S chromium
sudo systemctl enable sddm
if [ ! -d ${HOME}/temp/github ]
then
  mkdir -p ${HOME}/temp/github
fi
echo y | sudo pacman -S base-devel git
git clone https://aur.archlinux.org/noto-fonts-sc.git ${HOME}/temp/github/noto-fonts-sc
cd ${HOME}/temp/github/noto-fonts-sc
makepkg -si
echo y | sudo pacman -S noto-fonts-emoji
sudo pacman -S fcitx-im
sudo pacman -S kcm-fcitx
sudo pacman -S fcitx-rime
if [ ! -f ${HOME}/.pam_environment ]
then
  touch ${HOME}/.pam_environment
  echo "#self configuration" > ${HOME}/.pam_environment
fi
cat ${HOME}/.pam_environment | grep 'GTK_IM_MODULE=fcitx'
if [ $? -eq 1 ]
then
sed -i '$aGTK_IM_MODULE=fcitx' ${HOME}/.pam_environment
fi
cat ${HOME}/.pam_environment | grep 'QT_IM_MODULE=fcitx'
if [ $? -eq 1 ]
then
sed -i '$aGTK_IM_MODULE=fcitx' ${HOME}/.pam_environment
fi
cat ${HOME}/.pam_environment | grep 'XMODIFIERS=@im=fcitx'
if [ $? -eq 1 ]
then
sed -i '$aXMODIFIERS=@im=fcitx' ${HOME}/.pam_environment
fi
systemctl reboot
